#!/usr/bin/env python
# coding=utf-8
# __author__ = 'Yunchao Ling'

import sys
from pymongo import MongoClient

DB_NAME = "pmc"
COLLECTION_NAME = "filelist"

connection = MongoClient('192.168.8.253', 27017)
db = connection[DB_NAME]
collection = db[COLLECTION_NAME]

# infile = open(sys.argv[1], "r")
# infile.readline()
#
# for line in infile:
#     line = line.rstrip()
#     path = line.split("\t")[0]
#     result = collection.find_one({"path": path})
#     if result == None:
#         print line
# infile.close()
# connection.close()

print collection.find_one({"path":"fdsfsfsfsdf"})
connection.close()
